import request from '@/utils/request'

// 处方列表
export function DzmHisCareOrderList(data) {
    return request({
        url: 'http://localhost:8080/QueryDzmHisCareOrder',
        method: 'get',
        params:data
    })
}
// 收费总表
export function querypkg() {
    return request({
        url: 'http://localhost:8080/queryDzmHisCarePkg',
        method: 'get'
    })
}

// 项目检查
export function queryfee(data) {
    return request({
        url: 'http://localhost:8080/queryDzmHisInspectionfee',
        method: 'get',
        params: data

    })
}

// 项目检查根据ID删除
export function deletefee(id) {
    console.log(id)
    return request({
        url: `http://localhost:8080/deleteIdDzmHisInspectionfee?insId=${id}`,
        method: 'post'
    })
}

// 项目检查根据ID查询
export function dhipById(id) {
    console.log("---------------" + id)
    return request({
        url: `http://localhost:8080/ByIdDzmHisInspectionfee?insId=${id}`,
        method: 'get'
    })
}

// 项目检查修改
export function updatedhip(data) {
    return request({
        url: `http://localhost:8080/updateDzmHisInspectionfee`,
        method: 'post',
        params: data
    })
}

// 项目检查添加
export function adddhip(data) {
    console.log("==========>>>>" + data)
    return request({
        url: `http://localhost:8080/addDzmHisInspectionfee`,
        method: 'post',
        params: data
    })
}

// 药品销售
export function querymedicines() {
    return request({
        url: 'http://localhost:8080/queryDzmHisMedicines',
        method: 'get'
    })
}

//    门诊挂号统计
export function queryregtion() {
    return request({
        url: 'http://localhost:8080/queryDzmHisRegistration',
        method: 'get'
    })
}

//    用户收支统计表
export function querydhtr() {
    return request({
        url: 'http://localhost:8080/queryDzmHisTransactionRecord',
        method: 'get'
    })
}

//    患者库查询
export function querydp(data) {
    return request({
        url: 'http://localhost:8080/queryDzmPatient',
        method: 'get',
        params:data
    })
}


//    患者库添加
export function adddp(data) {
    return request({
        url: 'http://localhost:8080/addDzmPatient',
        method: 'post',
        params: data
    })
}

//    患者库修改
export function updatedp(data) {
    return request({
        url: 'http://localhost:8080/updateDzmPatient',
        method: 'post',
        params: data
    })
}


//    患者库删除
export function deldp(id) {
    console.log(id)
    return request({
        url: `http://localhost:8080/deleteDzmPatient?patientId=${id}`,
        method: 'post',
    })
}


//    患者库ID查询
export function getById(id) {
    console.log("id============================" + id)
    return request({
        url: `http://localhost:8080/queryById?patientId=${id}`,
        method: 'get',
    })
}
